package com.makemoney.miniprogram.modules.users.dao.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.makemoney.miniprogram.modules.users.dao.IUserRoleDao;
import com.makemoney.miniprogram.modules.users.entity.Roles;
import com.makemoney.miniprogram.modules.users.entity.UserRole;
import com.makemoney.miniprogram.modules.users.mapper.UserRoleMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserRoleDaoImpl extends ServiceImpl<UserRoleMapper, UserRole> implements IUserRoleDao {

    @Override
    public List<Roles> listByUserId(Long userId){
        return baseMapper.listByUserId(userId);
    }
}
